<script setup lang="ts">
import { ConfigProvider } from 'ant-design-vue';
import dayjs from 'dayjs';
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import 'dayjs/locale/zh-cn';
import lay from '@/layout/index.vue'

// 设置主题样式
document.querySelector('html')!.dataset.theme = 'theme1';

dayjs.locale('zh-cn');

const locale = zhCN;

</script>

<template>
  <config-provider :locale="locale">
    <router-view v-if="$route.name === 'Login'" />
    <lay v-else ref="lay" />
  </config-provider>
</template>
